package com.booktype.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.booktype.bean.Booktype;
import com.booktype.dao.IBooktypeDao;

@Transactional
@Service
public class BooktypeService implements IBooktypeService {

	public void setBooktypeDao(IBooktypeDao booktypeDao) {
		this.booktypeDao = booktypeDao;
	}

	@Override
	public List<Booktype> getAllBooktype() {
		return booktypeDao.getAllBooktype();
	}
	
	@Resource
	private IBooktypeDao booktypeDao;
}
